//
//  AboutVC.m
//  ShanMei
//
//  Created by huazi on 15/3/9.
//  Copyright (c) 2015年 huazi. All rights reserved.
//

#import "AboutVC.h"
@interface AboutVC ()
{

}
@end

@implementation AboutVC
- (void)setData
{
    self.titleForNav =@"关于";
//    self.labelVersion.text =[NSString stringWithFormat:@"V%@",kVersion];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    
    // Do any additional setup after loading the view.
}
- (void)setSubviews {
     
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    
    return 2;
    
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    
    return 44.0f;
    
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *strAboutUsCell2 =@"AboutUsCell2";
    UITableViewCell *cell =[tableView dequeueReusableCellWithIdentifier:strAboutUsCell2];
    if (cell ==nil)
    {
        cell =[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:strAboutUsCell2];
        cell.accessoryType =UITableViewCellAccessoryDisclosureIndicator;
    }
    if (indexPath.row ==0)
    {
        
        cell.textLabel.text =@"意见反馈";
    }
    else
    {
        cell.textLabel.text =@"客服电话";
        cell.detailTextLabel.text =kTel;
    }
    cell.textLabel.font =themeFont15;
    cell.backgroundColor =[UIColor clearColor];
    
    return cell;
    
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
    if (indexPath.row ==0) {
//        OpinionFeedback *_feedback =[self.storyboard instantiateViewControllerWithIdentifier:@"OpinionFeedback"];
//        [self.navigationController pushViewController:_feedback animated:YES];
    }
    else {
        [HZCallPhone CallPhoneWithPhoneNum:kTel inView:self.view];
    }
    
}



@end
